package com.unknow.first.dapp.admin.account.service;

import com.unknow.first.dapp.admin.account.mapper.FlashSwapRecord;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * 兑换前置处理类
 */
public interface ISwapRecordBeforeService {

    String SWAP_RECORD_BEFORE_SERVICE_PREFIX = "SwapRecordBeforeService.";

    @Transactional(rollbackFor = Throwable.class, propagation = Propagation.MANDATORY)
    void execute(FlashSwapRecord swapRecord) throws Exception;
}
